#ifndef SECRET_DIVIDE_H
#define SECRET_DIVIDE_H

#include <QString>

class secret_divide
{
public:
    secret_divide();

    void divide(int secret, int n, int k, int *result, QString &eq);
    int restore(int pow, int p, int *x, int *y);

private:
    bool isSimple(int n);
    void l_i(int pow, int p, int i, int *y, int *result);
};

#endif // SECRET_DIVIDE_H
